import request from '@/utils/request';

export  default{
	getGoods: params => request({ url:  '/goods/list', method: 'get',  params }),
	delGoods: data => request({ url:  `/goods/delete?id=${data.id}`, method: 'post',  data }),
	getService: params => request({ url:  '/virtualGoods/list', method: 'get',  params }),
	delService: data => request({ url:  `/virtualGoods/delete?id=${data.id}`, method: 'post',  data }),
	readGoods: params => request({ url:  `/goods/${params.id}`, method: 'get',  params }),
	createGoods: data => request({ url:  `/goods/add`, method: 'post', data }),
	createService: data => request({ url:  `/virtualGoods/add`, method: 'post', data }),
	updateGoods: data => request({ url:  `/goods/update`,  data }),
	getGiftOrder: params => request({ url:  '/giftOrder/list', method: 'get',  params }),
	createGiftOrder: data => request({ url:  '/giftOrder/add', method: 'post',  data }),
}